package top.zhmq.orderconsumer.hystrix;

import org.springframework.stereotype.Component;
import top.zhmq.commonmodule.model.Userorder;
import top.zhmq.orderconsumer.service.OrderService;

import java.util.List;

/**
 * Feign和Hystrix
 *
 * @author Glory
 * @classname OrderServiceHystrix
 * @create 2021-06-07 22:17
 */
@Component
public class OrderServiceHystrix implements OrderService {
    @Override
    public int successOrder(int id) {
        return 0;
    }

    @Override
    public int cancelOrder(int id) {
        return 0;
    }

    @Override
    public List<Userorder> getAllorder(int uid) {
        return null;
    }
}
